package cn.jit.ssm.utils;

/**
 * @author: Cecurio
 * @create: 2017-12-06 16:51
 **/
public class CompareUtil {
    public static boolean isEmpty(Object obj) {
        if (obj == null)
            return true;
        return false;
    }

    public static boolean isNotEmpty(Object obj) {
        if (obj != null)
            return true;
        return false;
    }

    public static int isEmptyInteger(Integer val) {
        if (val == null)
            return 0;
        return val;
    }

    public static long isEmptyLong(Long val) {
        if (val == null)
            return 0;
        return val;
    }

}
